package s5_synchronizedMethod;

public class ThreadDemo1 {
    public static void main(String[] args) {
        //1.创建一个账户对象
        Account account = new Account("ICBC-001", 100000);
        //2.创建多个线程，同时取钱
        new DrawMoney(account, "小明").start();
        new DrawMoney(account, "小红").start();
    }
}
